<%@ include file="/common/taglibs.jsp" %>
<div>
<spring:bind path="profile">
	<c:forEach items="${status.errorMessages}" var="error">
		Error code: <c:out value="${error}"/><br>
	</c:forEach>
</spring:bind>

<form:form cssClass="wufoo" commandName="profile" action="/grouper-webapp/accounts/save.html" >
	<form:hidden path="id" />
	<div class="info">
		<h2>Manage <c:out value="${user.firstName }" /> <c:out value="${user.lastName }" /></h2>
		<p></p>
	</div>
	<ul>
		<li class="section first">
			<h3>Section Title</h3>
			<p>Description of the section.</p>
		</li>
			<li>
			
	<label class="desc">Name</label>
		<span>
		<form:input path="title" cssClass="field text" size="3" />
		<label>Title</label>
		</span>
	
		<span>
		<form:input path="firstName" cssClass="field text" size="8"/>
		<label>First</label>
		</span>
	
		<span>
		<form:input path="lastName" cssClass="field text" size="14" />
		<label>Last</label>
		</span>
	
		<span>
		<form:input path="suffix" cssClass="field text" size="3" />
		<label>Suffix</label>
		</span>
	</li>
	
	<li>
	<label class="desc">Address</label>
	<div class="address">	
		<div>
		<form:input path="primaryAddress.street1" cssClass="field text full addr" />
		<label>Street Address</label>
		</div>

		<div>
		<form:input path="primaryAddress.street2" cssClass="field text full addr" />
		<label>Address Line 2</label>
		</div>

		<div class="left">
		<form:input path="primaryAddress.city" cssClass="field text full addr" />
		<label>City</label>
		</div>

		<div class="right">
		<input class="field text full addr" type="text" value="" />
		<label>State / Province / Region</label>
		</div>

		<div class="left">
		<input class="field text full addr" type="text"  maxlength="15" value="" />
		<label>Postal / Zip Code</label>
		</div>

		<div class="right">
		<select class="field select full addr"> 
		<option value="" selected="selected"></option>
		<option value="United Kingdom">United Kingdom</option>
		<option value="United States">United States</option>

		</select>
		<label>Country</label>
		</div>
	</div>
	</li>
		
		<li>
			<input type="submit" />
		</li>
	</ul>
</form:form>
</div>
<c:out value="${user.firstName }" />